package com.wyp168.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wyp168.common.utils.PageUtils;
import com.wyp168.gulimall.ware.entity.PurchaseEntity;
import com.wyp168.gulimall.ware.vo.MergeVO;
import com.wyp168.gulimall.ware.vo.PurchaseDoneVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author wyp168
 * @email 2721255240@qq.com
 * @date 2022-10-22 20:54:22
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有未被领取的采购单
     * @param params
     * @return
     */
    PageUtils queryPageUnReceive(Map<String, Object> params);

    /**
     * 自动创建采购单并合并采购需求
     * @param mergeVO
     */
    void autoMergePurchase(MergeVO mergeVO);

    /**
     * 领取采购单的方法
     * @param ids
     */
    void received(List<Long> ids);

    /**
     * 完成采购单
     * @param purchaseDoneVO
     */
    void done(PurchaseDoneVO purchaseDoneVO);
}

